#include <QApplication>
#include "FactoryVirtualKeyboard/FactoryVirtualKeyboard.h"


int main(int Argc,char** Argv)
{
    QApplication App(Argc,Argv);

    //创建数组键盘
    {
        AbstractVirtualKeyboard* p(FactoryVirtualKeyboard::CreateVirtualKeyboard(FactoryVirtualKeyboard::ARABICNUMERALS));
        if(nullptr!=p)
        {
          p->VirtualKeyboardShow();
        }
    }

    //创建中文字符键盘
    {
        AbstractVirtualKeyboard* p(FactoryVirtualKeyboard::CreateVirtualKeyboard(FactoryVirtualKeyboard::CHARACTERCHINESE));
        if(nullptr!=p)
        {
          p->VirtualKeyboardShow();
        }
    }

    //创建英文字符键盘
    {
        AbstractVirtualKeyboard* p(FactoryVirtualKeyboard::CreateVirtualKeyboard(FactoryVirtualKeyboard::CHARACTERENGLISH));
        if(nullptr!=p)
        {
          p->VirtualKeyboardShow();
        }
    }
    //创建大写英文键盘
    {
        AbstractVirtualKeyboard* p(FactoryVirtualKeyboard::CreateVirtualKeyboard(FactoryVirtualKeyboard::LETTERCAPITAL));
        if(nullptr!=p)
        {
          p->VirtualKeyboardShow();
        }
    }
    //创建小写英文键盘
    {
        AbstractVirtualKeyboard* p(FactoryVirtualKeyboard::CreateVirtualKeyboard(FactoryVirtualKeyboard::LETTERLOWER));
        if(nullptr!=p)
        {
          p->VirtualKeyboardShow();
        }
    }

    return App.exec();
}
